package com.bjesc_b2c.app.appraiset.adapter;

import android.content.Context;

import com.bjesc_b2c.app.appraiset.R;

import java.util.List;

import app.pinggushi.bjesc.com.baserecyclerview.adapter.CommonAdapter;
import app.pinggushi.bjesc.com.baserecyclerview.adapter.base.ViewHolder;
import master_bean.DialogPureTextBean;

/**
 * Created by Jason Chen on 2017/2/22.
 */

public class DialogPureTextAdapter extends CommonAdapter<DialogPureTextBean> {

    public DialogPureTextAdapter(Context context, int layoutId, List<DialogPureTextBean> datas) {
        super(context, layoutId, datas);
    }

    @Override
    protected void convertView(ViewHolder holder, DialogPureTextBean bean, int position) {
        holder.setText(R.id.tv_fuel_type,bean.getPuleType());
        if(bean.isCheck()){
            holder.setVisible(R.id.iv_checked,true);
        }else{
            holder.setVisible(R.id.iv_checked,false);
        }
    }
}
